import request from '@/utils/request'

// 查询物品归还列表
export function listMissing(query) {
  return request({
    url: '/system/missing/list',
    method: 'get',
    params: query
  })
}

// 查询物品归还详细
export function getMissing(id) {
  return request({
    url: '/system/missing/' + id,
    method: 'get'
  })
}

// 新增物品归还
export function addMissing(data) {
  return request({
    url: '/system/missing',
    method: 'post',
    data: data
  })
}

// 修改物品归还
export function updateMissing(data) {
  return request({
    url: '/system/missing',
    method: 'put',
    data: data
  })
}

// 删除物品归还
export function delMissing(id) {
  return request({
    url: '/system/missing/' + id,
    method: 'delete'
  })
}
